package model.semantics;

import model.State;

/**
 * Constant node that does nothing but return the default value defined by the
 * state.
 * 
 * @author Sterling Dorminey
 * 
 */
public class DefaultNode<T> extends Node<T> {

    @Override
    public T evaluate(State<T> state) {
        return state.getDefaultValue().evaluate(state);
    }

}
